<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>小说内容列表</title>
<link href="../member/templets/style/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../images/js/j.js"></script>
<script language="javascript" type="text/javascript" src="../member/templets/js/table_function.js"></script>
<script language="javascript" type="text/javascript" src="js/main.js"></script>
<script language="javascript" type="text/javascript" src="js/story.js"></script>
</head>
<body>
<div id="main">
  <?php include(DEDEMEMBER."../templets/head.htm"); ?>
  <div id="content" class="w960 clearfix">
    <?php include(DEDEMEMBER."./templets/menu.php"); ?>
    <div id="mcpmain">
      <div id="appTab">
        <ul>
          <li><a href="mybooks.php"><span>小说书目</span></a></li>
          <li class="thisTab"><a href="story_list_content.php"><span>小说内容</span></a></li>
          <li><a href="story_stow.php"><span>我的收藏夹</span></a></li>
        </ul>
      </div>
      <div id="mainCp">
        <form name="form2" class="mL10 mR10 mTB10">
          <?php if(isset($bookid)&&$bookid != '0'){?>
          <div class="titleBar bgGrass lineB mB10">
            <div class="fLeft"><strong>连载内容</strong></div>
            <div class="fRight titSecondary white" style="margin-top:5px;"> <em class="mR10">
              <?php if($booktype == '1'){?>
              <a href='story_add_photo.php?bookid=<?php echo $bookid; ?>'>新增漫画内容</a>
              <?php }else{?>
              <a href='story_add_content.php?bookid=<?php echo $bookid; ?>'>新增小说内容</a>
              <?php }?>
              </em> <em class="mR10"> <a href="story_list_content.php?bookid=<?php echo $bookid; ?>">小说内容</a> </em> <em class="mR10"> <a href="story_list_chapter.php?bookid=<?php echo $bookid; ?>">书目章节</a> </em> <em class="mR10"> <a href="story_edit.php?bookid=<?php echo $bookid; ?>">小说书目</a> </em></div>
          </div>
          <?php }?>
          <table cellspacing="1" class="list" width="100%">
            <thead>
              <tr>
                <th >标题</th>
                <th width="10%">章节 </th>
                <th width="10%">隶属书目 </th>
                <th width="10%">添加时间 </th>
                <th width="10%">管理</th>
              </tr>
            </thead>
            <tbody>
            
            {dede:datalist}
            <tr>
              <td><input type='hidden' name='ids[]' value='<?php  echo $fields['id'];  ?>' />
                <a href='javascript:PreViewCt(<?php echo $fields['id']; ?>,<?php echo $fields['booktype']; ?>);'><?php echo $fields['title']; ?></a></td>
              <td align="center"><?php echo "<a href='story_list_content.php?bookid={$fields['bookid']}&chapid={$fields['chapterid']}'>".$fields['chaptername']."</a> <small>({$fields['sortid']})</small>"; ?></td>
              <td align="center"><?php echo "<a href='story_list_content.php?bookid={$fields['bookid']}'>".$fields['bookname']."</a>"; ?></td>
              <td align="center"><?php echo GetDateMk($fields['addtime']); ?></td>
              <td align="center"><?php
								if($fields['booktype']==1) $editfile = 'story_photo_edit.php?cid=';
								else $editfile = 'story_content_edit.php?cid=';
							?>
                <a href='<?php echo $editfile.$fields['id']; ?>'>修改</a> &nbsp; <a href='javascript:DelStoryContent(<?php echo $fields['id']; ?>)'>删除</a></td>
            </tr>
            {/dede:datalist}
            </tbody>
            
            <tfoot>
              <tr>
                <td colspan="6"><div class="pages mTB10 fRight">{dede:pagelist listsize=5/}</div>
                  <div class="clear"></div></td>
              </tr>
            </tfoot>
          </table>
        </form>
        </div>
        <!--主操作区域 -->
      </div>
 <div class="clear"></div>
    </div>
  </div>
<?php include(DEDEMEMBER."./templets/foot.htm"); ?>
</div>
</body>
</html>